<?php

get_header();

if (have_posts()) : while(have_posts()) : the_post();
?>
 <!--contact start-->
<section class="blog blog-detail" id="blog">
    <div id="post-<?php the_ID(); ?>" <?php post_class('container topCon') ?>>
		<div class="row">
	        <div class="col-lg-9">
		      	<div class="heading">
		          	<h2><?php the_title() ?></h2>
		      	</div>
		      	<div class="post-title">
		        	<?php qva_get_meta_data(); ?>
		      </div>
		    </div>
		 </div>

      	<div class="row">
	        <div class="col-lg-9">
	          	<div class="post post-single">	
	                <div class="inner-spacer-right-lrg">
	                  <div class="post-media">
	                      <?php qva_view_type($post->ID); ?>
	                  </div>
	                  
	                </div>

	                <div class="post-body">
	                  	<?php the_content(); ?>
	                </div>

	                <?php if ( has_tag() ) : ?>
	                <div class="post-tags">
	                	<span class="tags-icon"><i class="fa fa-tags"></i></span>
						<?php  the_tags('', ', ', '');  ?>	     
	                </div> <!-- /post-tags -->
	            	<?php endif; ?>

	            	<?php 
	            	
	            		if ( isset(qvaCore::$qvaOptions['blog']['sharingbox']) ) : 
	            		if ( !empty(qvaCore::$qvaOptions['blog']['sharingbox']) ) : 

	            	?>

	            	<div class="share-post">
	            		<span><?php _e('Share:', QVA_LANG) ?></span>
	            		<a href="http://www.facebook.com/sharer.php?u=<?php the_permalink(); ?>&amp;t=<?php the_title(); ?>"><i class="fa fa-facebook"></i></a>
	            		<a href="http://twitthis.com/twit?url=<?php the_permalink(); ?>"><i class="fa fa-twitter"></i></a>
	            		<a href="http://linkedin.com/shareArticle?mini=true&amp;url=<?php the_permalink(); ?>&amp;title=<?php the_title(); ?>"><i class="fa fa-linkedin"></i></a>
	            		<a href="http://www.tumblr.com/share/link?url=<?php echo urlencode(get_permalink()); ?>&amp;name=<?php echo urlencode($post->post_title); ?>&amp;description=<?php echo urlencode(get_the_excerpt()); ?>"><i class="fa fa-tumblr-square"></i></a>
	            		<a href="http://google.com/bookmarks/mark?op=edit&amp;bkmk=<?php the_permalink(); ?>&amp;title=<?php the_title(); ?>"><i class="fa fa-google-plus"></i></a>
	            		<a href="mailto:?subject=<?php the_title(); ?>&amp;body=<?php the_permalink(); ?>"><i class="fa fa-envelope"></i></a>
	            	</div>

	            	<?php endif; endif; ?>

					<?php wp_link_pages( ); ?>
	                <nav class="nav-single">					
						<span class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . __('&larr;', QVA_LANG ) . '</span>' ); ?></span>
						<span class="nav-next"><?php next_post_link( '%link', '<span class="meta-nav">' . __('&rarr;', QVA_LANG ) . '</span>' ); ?></span>
					</nav><!-- .nav-single -->

	                <?php edit_post_link('Edit this entry.', '<br /><p class="edit-this">', '</p>'); ?>



	          	</div>

          	 	<?php comments_template( '', true ); ?>

	        </div>

	      
	        <div class="col-lg-3">
	          <div class="sidebar">
	            <?php get_sidebar(); ?>
	          </div><!-- end sidebar -->
	        </div>
	    	

      	</div>

    </div>
</section>
<?php endwhile;endif; wp_reset_postdata(); ?>

<?php 
get_footer();
?>